Iterating over a ndarray by taking current and next row

visit shbcf.ru